package com.itheima_01;

import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedList;

public class CollectionDemo1 {
    public static void main(String[] args) {
        Collection<String> coll = new ArrayList<>();
        coll.add("abc");
        coll.add("abd");
        coll.add("abe");
        coll.add("abf");
        //coll.clear();
        coll.contains("abd");
        System.out.println(coll.isEmpty());
        coll.remove("abf");
        System.out.println(coll.size());
        System.out.println(coll);

        LinkedList<String> list = new LinkedList<>();
        list.add("aaa");

    }
}
